<%--
  Created by IntelliJ IDEA.
  User: MyUser
  Date: 2025/3/6
  Time: 14:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>处理登录的页面</title>
</head>
<body>
<h1>处理登录的页面</h1>>
<%
    String username = request.getParameter("username");
    String password = request.getParameter("password");

    out.println("账号："+username);
    out.println("<br/>");
    out.println("密码："+password);

    if("liuxiaowen".equals(username)&&"12345678".equals(password)){
        session.setAttribute("user",username);
        request.getRequestDispatcher("/welcome.jsp").forward(request,response);
    }else{
        session.setAttribute("erorMsg","账号密码错误");
        response.sendRedirect("login.jsp");
    }
%>

</body>
</html>
